package com.itheima.tlias.controller;

import com.itheima.tlias.common.result.Result;
import com.itheima.tlias.service.ReportService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/report")
public class ReportController {
    @Resource
    private ReportService reportService;
    @GetMapping("/empGenderData")
    public Result empGenderData(){
        return reportService.empGenderData();
    }
    @GetMapping("/empJobData")
    public Result empJobData(){
        return reportService.empJobData();
    }
    @GetMapping("/studentDegreeData")
    public Result studentDegreeData(){
        return reportService.studentDegreeData();
    }
    @GetMapping("/studentCountData")
    public Result studentCountData(){
        return reportService.studentCountData();
    }
}
